Page({
  data: {
    datalist:[]
  },
  getData(){
    let that=this
    wx.cloud.database().collection("goods_list").get({
      success(res){
        that.setData({
          datalist:res.data
        })
      },
      fail(res){
        console.log("fail",res)
      }
    })
  }
})